Optimal. Leaf size=45 \[ \frac{a (c+d x)^2}{2 d}+\frac{b (c+d x) \cosh (e+f x)}{f}-\frac{b d \sinh (e+f x)}{f^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.047893, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3317, 3296, 2637} \[ \frac{a (c+d x)^2}{2 d}+\frac{b (c+d x) \cosh (e+f x)}{f}-\frac{b d \sinh (e+f x)}{f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3317
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int (c+d x) (a+b \sinh (e+f x)) \, dx &=\int (a (c+d x)+b (c+d x) \sinh (e+f x)) \, dx\\ &=\frac{a (c+d x)^2}{2 d}+b \int (c+d x) \sinh (e+f x) \, dx\\ &=\frac{a (c+d x)^2}{2 d}+\frac{b (c+d x) \cosh (e+f x)}{f}-\frac{(b d) \int \cosh (e+f x) \, dx}{f}\\ &=\frac{a (c+d x)^2}{2 d}+\frac{b (c+d x) \cosh (e+f x)}{f}-\frac{b d \sinh (e+f x)}{f^2}\\ \end{align*}
Mathematica [A] time = 0.111022, size = 43, normalized size = 0.96 \[ \frac{1}{2} a x (2 c+d x)+\frac{b (c+d x) \cosh (e+f x)}{f}-\frac{b d \sinh (e+f x)}{f^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.007, size = 91, normalized size = 2. \begin{align*}{\frac{1}{f} \left ({\frac{da \left ( fx+e \right ) ^{2}}{2\,f}}+{\frac{bd \left ( \left ( fx+e \right ) \cosh \left ( fx+e \right ) -\sinh \left ( fx+e \right ) \right ) }{f}}-{\frac{dea \left ( fx+e \right ) }{f}}-{\frac{deb\cosh \left ( fx+e \right ) }{f}}+ca \left ( fx+e \right ) +cb\cosh \left ( fx+e \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.30236, size = 88, normalized size = 1.96 \begin{align*} \frac{1}{2} \, a d x^{2} + a c x + \frac{1}{2} \, b d{\left (\frac{{\left (f x e^{e} - e^{e}\right )} e^{\left (f x\right )}}{f^{2}} + \frac{{\left (f x + 1\right )} e^{\left (-f x - e\right )}}{f^{2}}\right )} + \frac{b c \cosh \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.46015, size = 128, normalized size = 2.84 \begin{align*} \frac{a d f^{2} x^{2} + 2 \, a c f^{2} x - 2 \, b d \sinh \left (f x + e\right ) + 2 \,{\left (b d f x + b c f\right )} \cosh \left (f x + e\right )}{2 \, f^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.36472, size = 68, normalized size = 1.51 \begin{align*} \begin{cases} a c x + \frac{a d x^{2}}{2} + \frac{b c \cosh{\left (e + f x \right )}}{f} + \frac{b d x \cosh{\left (e + f x \right )}}{f} - \frac{b d \sinh{\left (e + f x \right )}}{f^{2}} & \text{for}\: f \neq 0 \\\left (a + b \sinh{\left (e \right )}\right ) \left (c x + \frac{d x^{2}}{2}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28085, size = 89, normalized size = 1.98 \begin{align*} \frac{1}{2} \, a d x^{2} + a c x + \frac{{\left (b d f x + b c f - b d\right )} e^{\left (f x + e\right )}}{2 \, f^{2}} + \frac{{\left (b d f x + b c f + b d\right )} e^{\left (-f x - e\right )}}{2 \, f^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]